<template>
  <div class="grandson">
    <h2>我是Grandson组件</h2>
  </div>
</template>

<script>
  export default {
    name:'Grandson',
    beforeCreate() {
      console.log('Grandson-创建之前')
    }
  }
</script>

<style scoped>
  .grandson {
    margin-top: 10px;
    background-color: orange;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px;
  }
</style>